const key = 'schedule-user-avator'

// 存储头像图片的base64编码
export const setAvatarStorage = (value) => {
	uni.setStorage({
		key: key,
		data: value,
		success() {
			console.log('设置成功')
		},
	})
}

// 获取头像图片的base64编码
export const getAvatarStorage = () => {
	let baseCode = ''
	baseCode = uni.getStorageSync(key)
	console.log('basecode:', baseCode)
	return baseCode
}